package com.example.mqttdevicesimulator;

/**
 * The device item listed in the list view.
 */
public class MqttDevice {
    private String name;
    private int imageId;

    /**
     * Constructor.
     *
     * @param name    device name
     * @param imageId device image resource id
     */
    public MqttDevice(String name, int imageId) {
        this.name = name;
        this.imageId = imageId;
    }

    /**
     * Get device name.
     *
     * @return device name.
     */
    public String getName() {
        return name;
    }

    /**
     * Get device image resource id
     *
     * @return device image resource id
     */
    public int getImageId() {
        return imageId;
    }

}
